package demo.serviceImpl;

import demo.mapper.TeacherMapper;
import demo.pojo.Teacher;
import demo.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;


    @Override
    public List<Teacher> findAll() {
        return teacherMapper.findAll();
    }
}
